package cn.zjh.org.domain;

import cn.zjh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain<Department> {
    private String sn;
    private String name;
    private Integer state;
    //部门经理
    private Long manager_id;
    private Employee manager;
    //上级部门
    private Long parent_id;
    private Department parent;

    //部门树
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();


}
